package com.demo.facade;

public class DVDPlayer {

    // 使用饿汉式
    private static DVDPlayer dvdPlayer = new DVDPlayer();

    public static DVDPlayer getDvdPlayer() {
        return dvdPlayer;
    }

    public void on() {
        System.out.println(" DVD ON ");
    }

    public void off() {
        System.out.println(" DVD off ");
    }

    public void play() {
        System.out.println(" DVD play ");
    }

    public void pause() {
        System.out.println(" DVD pause ");
    }
}
